package it.cqupt.service.store;

import com.github.pagehelper.PageInfo;
import it.cqupt.domain.store.Question;

import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

public interface QuestionService {
    String save(Question question,boolean flag);
    void delete(Question question);
    void update(Question question,boolean flag);
    Question findById(String id);
    List<Question> findAll();
    //使用pagehelper这个工具来直接实现分页显示
    PageInfo findAll(int page, int size);

    ByteArrayOutputStream downloadReport() throws IOException;
}
